<div jwcid="loginDialog">
	<div style="background-color: white;" class="dialog" jwcid="noMessage">
		<span jwcid="loginErrors@ShowErrors" delegate="ognl:delegate"/>
		<form jwcid="loginForm">
		  <table>
		    <tr>
		      <td><span jwcid="@FieldLabel" field="component:email">Email:</span></td>
		      <td><input jwcid="email" size="16"/></td>
		    </tr>
		    <tr>
		      <td><span jwcid="@FieldLabel" field="component:password">Password:</span></td>
		      <td><input jwcid="password" size="16"/></td>
		    </tr>
		    <tr jwcid="inRegMode">
		      <td><span jwcid="@FieldLabel" field="component:confirm">Confirm password:</span></td>
		      <td><input jwcid="confirm" size="16"/></td>
		    </tr>
		    <tr jwcid="inRegMode3">
		      <td><span jwcid="@FieldLabel" field="component:username">Username:</span></td>
		      <td><input jwcid="username" size="16"/></td>
		    </tr>
		    <tr jwcid="inLoginMode1">
		    	<td colspan="2" align="right">
		    		<input type="checkbox" jwcid="rememberMe"/>&nbsp;<span key="form.remember.me"/>
		    	</td>
		    </tr>
		    <tr jwcid="inLoginMode">
		      <td colspan="2">
		        <input jwcid="submit" class="button"/>&nbsp;<input jwcid="register" class="button"/>&nbsp;<input jwcid="cancelLogin" class="button"/>
		      </td>
		    </tr>
		    <tr jwcid="inRegMode2">
		      <td colspan="2">
		        <input jwcid="submitRegister" class="button"/>&nbsp;<input jwcid="cancelRegister" class="button"/>
		      </td>
		    </tr>    
		  </table>
		</form>
	</div>
	<div style="background-color: green; padding: 20px;" jwcid="showMessage">
		<h3 style="color: white"><span jwcid="message"/></h3>
		<form jwcid="@Form" async="ognl:true">
			<center><input jwcid="hideMessage"/></center>
		</form>
	</div>
	<script type="text/javascript">
       dojo.require("tapestry.fx");
       dojo.require("dojo.lfx");
       tapestry.fx.attachPostEffect("loginDialog", function(){return dojo.lfx.highlight("loginForm", [255, 180, 180]) });
	</script>
</div>